import request from '@/utils/request'

// 查询订单列表
export function listForm(query) {
  return request({
    url: '/form/form/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getForm(orderId) {
  return request({
    url: '/order/form/' + orderId,
    method: 'get'
  })
}

// 新增订单
export function addForm(data) {
  return request({
    url: '/form/form/add',
    method: 'post',
    data: data
  })
}

// 修改订单
export function updateForm(data) {
  return request({
    url: '/form/form/edit',
    method: 'put',
    data: data
  })
}

export function payupdate(data) {
  return request({
    url: '/form/form/pay',
    method: 'put',
    data: data
  })
}

// 删除订单
export function delForm(orderId) {
  return request({
    url: '/order/form/' + orderId,
    method: 'delete'
  })
}
